package com.vhall.component.entity.vote.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Map;

/**
 * @author longzhen.gong
 * @date 2021/7/7 16:46
 */
@NoArgsConstructor
@Data
public class VoteDetailRspVO implements Serializable {

    private static final long serialVersionUID = -6769573313681694536L;
    @JsonProperty("question_id")
    private Long questionId;

    @JsonProperty("title")
    private String title;

    @JsonProperty("description")
    private String description;

    @JsonProperty("imgUrl")
    private String imgUrl;

    @JsonProperty("type")
    private String type;

    @JsonProperty("extend")
    private String extend;

    private Map<String, Option> list;

    @NoArgsConstructor
    @Data
    public static class Option {
        @JsonProperty("option_id")
        private Long optionId;
        @JsonProperty("count")
        private Integer count;
        @JsonProperty("option")
        private String option;
        @JsonProperty("value")
        private String value;
        @JsonProperty("answer")
        private Integer answer;
    }

}
